package com.atguigu.tingshu.order.service;

import com.atguigu.tingshu.model.order.OrderInfo;
import com.atguigu.tingshu.vo.order.OrderInfoVo;
import com.atguigu.tingshu.vo.order.TradeVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

public interface OrderInfoService extends IService<OrderInfo> {

    // 构建结算页所需要的数据
    public abstract OrderInfoVo trade(TradeVo tradeVo);

    // 生成订单数据
    public abstract String submitOrder(OrderInfoVo orderInfoVo);

    public abstract void cancelOrder(String orderNo);

    public abstract void orderPaySuccess(String tradeNo);

    public OrderInfo getOrderInfoByOrderNo(String orderNo) ;

    public abstract IPage<OrderInfo> findUserPage(Integer pageNo, Integer pageSize);
}
